package com.luo.beanfacotryprocesser;

//网上看到的例子
//实现一个功能：
//上午的话会显示 上午好，下午的话显示 下午好
public class Welcomer {
	private String welcomeText;

	public void initWelcomer() {
		System.out.println("Welcomer is initialized");
	}

	public void setWelcomeText(String welcomeText) {
		System.out.println("Setting welcomeText to: "+welcomeText);
		this.welcomeText = welcomeText;
	}

	public String getWelcomeText() {
		return this.welcomeText;
	}

	@Override
	public String toString() {
		return "Welcomer {text: "+this.welcomeText+"}";
	}
}
